<?php

class AuthAction extends AdminAction
{
    public function __construct()
    {
        parent::__construct();
    }

    public function register()
    {
        $username = "admin";
        $password = md5('admin!@#$');
        $type = 1;
        $create_time = time();
        $update_time = 0;


        $User = M("ad_user");
        $data['username']    = $username;
        $data['password']    = $password;
        $data['type']        = $type;
        $data['create_time'] = $create_time;
        $data['update_time'] = $update_time;

        $re = $User->add($data);
        print_r($re);

    }

}


?>